<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>常见网页布局</title>
    <style>
        /* 这个最常见 */
        * {
            margin: 0;
            padding: 0;
        }

        ul li {
            list-style: none;
        }

        .top {
            height: 50px;
            background-color: gray;
        }

        .banner {
            width: 980px;
            height: 150px;
            background-color: gray;
            margin: 10px auto;
        }

        .box1 {
            width: 980px;
            height: 100px;
            margin: 0 auto;
            background-color: pink;
        }

        .box1 .last {
            margin-right: 0;
        }

        .box1 ul li {
            width: 237px;
            height: 100px;
            background-color: gray;
            margin-right: 10px;
            float: left;
        }

        .box2 {
            width: 980px;
            height: 300px;
            margin: 10px auto;
            background-color: pink;
        }

        .box2 .one {
            margin-right: 0;
        }

        .box2 ul li {
            width: 237px;
            height: 300px;
            background-color: gray;
            margin-right: 10px;
            float: left;
        }

        .footer {
            height: 200px;
            background-color: gray;
            margin: 0 auto;
        }
    </style>
</head>

<body>
    <div class="top">top</div>
    <div class="banner">banner</div>
    <div class="box1">
        <ul>
            <li></li>
            <li></li>
            <li></li>
            <li class="last"></li>
        </ul>
    </div>
    <div class="box2">
        <ul>
            <li></li>
            <li></li>
            <li></li>
            <li class="one"></li>
        </ul>
    </div>

    <div class="footer">footer</div>
</body>

</html>